#ifndef QUEUEMANAGER_H
#define QUEUEMANAGER_H

#include <QMainWindow>
#include <QTimer>
#include <QMap>
#include <QProgressBar>

namespace Ui {
    class QueueManager;
}

#define BUFFSIZE 10000

class QueueManager : public QMainWindow {
    Q_OBJECT
public:
	QueueManager(QString addr, uint port, QWidget *parent = 0);
    ~QueueManager();

public slots:
	void updateGui();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::QueueManager *ui;
	QTimer *t;
	QMap <QString, QProgressBar* > queues;
	QString _addr;
	uint _port;
	char buffer [BUFFSIZE];
};

#endif // QUEUEMANAGER_H
